Optimal. Leaf size=130 \[ \frac{8 i a^3 \sqrt{a+i a \tan (c+d x)}}{d}+\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}-\frac{8 i \sqrt{2} a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0815251, antiderivative size = 130, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {3478, 3480, 206} \[ \frac{8 i a^3 \sqrt{a+i a \tan (c+d x)}}{d}+\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}-\frac{8 i \sqrt{2} a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3478
Rule 3480
Rule 206
Rubi steps
\begin{align*} \int (a+i a \tan (c+d x))^{7/2} \, dx &=\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d}+(2 a) \int (a+i a \tan (c+d x))^{5/2} \, dx\\ &=\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d}+\left (4 a^2\right ) \int (a+i a \tan (c+d x))^{3/2} \, dx\\ &=\frac{8 i a^3 \sqrt{a+i a \tan (c+d x)}}{d}+\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d}+\left (8 a^3\right ) \int \sqrt{a+i a \tan (c+d x)} \, dx\\ &=\frac{8 i a^3 \sqrt{a+i a \tan (c+d x)}}{d}+\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d}-\frac{\left (16 i a^4\right ) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,\sqrt{a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac{8 i \sqrt{2} a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{d}+\frac{8 i a^3 \sqrt{a+i a \tan (c+d x)}}{d}+\frac{4 i a^2 (a+i a \tan (c+d x))^{3/2}}{3 d}+\frac{2 i a (a+i a \tan (c+d x))^{5/2}}{5 d}\\ \end{align*}
Mathematica [A] time = 1.62234, size = 166, normalized size = 1.28 \[ \frac{i \sqrt{2} a^3 e^{-\frac{1}{2} i (2 c+5 d x)} \sqrt{1+e^{2 i (c+d x)}} \sqrt{\frac{a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (\cos \left (\frac{3 d x}{2}\right )+i \sin \left (\frac{3 d x}{2}\right )\right ) \left (\sqrt{1+e^{2 i (c+d x)}} \sec ^3(c+d x) (8 i \sin (2 (c+d x))+38 \cos (2 (c+d x))+35)-120 \sinh ^{-1}\left (e^{i (c+d x)}\right )\right )}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 92, normalized size = 0.7 \begin{align*}{\frac{2\,ia}{d} \left ({\frac{1}{5} \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{{\frac{5}{2}}}}+{\frac{2\,a}{3} \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{{\frac{3}{2}}}}+4\,{a}^{2}\sqrt{a+ia\tan \left ( dx+c \right ) }-4\,{a}^{5/2}\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{a+ia\tan \left ( dx+c \right ) }\sqrt{2}}{\sqrt{a}}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.08696, size = 973, normalized size = 7.48 \begin{align*} \frac{\sqrt{2}{\left (368 i \, a^{3} e^{\left (4 i \, d x + 4 i \, c\right )} + 560 i \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + 240 i \, a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )} + 120 \, \sqrt{2} \sqrt{-\frac{a^{7}}{d^{2}}}{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac{{\left (8 i \, \sqrt{2} \sqrt{-\frac{a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} + 8 \, \sqrt{2}{\left (a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{8 \, a^{3}}\right ) - 120 \, \sqrt{2} \sqrt{-\frac{a^{7}}{d^{2}}}{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac{{\left (-8 i \, \sqrt{2} \sqrt{-\frac{a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} + 8 \, \sqrt{2}{\left (a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{8 \, a^{3}}\right )}{30 \,{\left (d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]